package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_XTPZ"
 *     
*/
public class XtglXtpz implements Serializable {

    /** identifier field */
    private String pzbh;

    /** persistent field */
    private String pzmc;

    /** persistent field */
    private String pzlxDm;

    /** persistent field */
    private String qyBz;

    /** nullable persistent field */
    private String pzcs;

    /** nullable persistent field */
    private String bz;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public XtglXtpz(String pzbh, String pzmc, String pzlxDm, String qyBz, String pzcs, String bz, String zt1, String zt2) {
        this.pzbh = pzbh;
        this.pzmc = pzmc;
        this.pzlxDm = pzlxDm;
        this.qyBz = qyBz;
        this.pzcs = pzcs;
        this.bz = bz;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglXtpz() {
    }

    /** minimal constructor */
    public XtglXtpz(String pzbh, String pzmc, String pzlxDm, String qyBz) {
        this.pzbh = pzbh;
        this.pzmc = pzmc;
        this.pzlxDm = pzlxDm;
        this.qyBz = qyBz;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="PZBH"
     *         
     */
    public String getPzbh() {
        return this.pzbh;
    }

    public void setPzbh(String pzbh) {
        this.pzbh = pzbh;
    }

    /** 
     *            @hibernate.property
     *             column="PZMC"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getPzmc() {
        return this.pzmc;
    }

    public void setPzmc(String pzmc) {
        this.pzmc = pzmc;
    }

    /** 
     *            @hibernate.property
     *             column="PZLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getPzlxDm() {
        return this.pzlxDm;
    }

    public void setPzlxDm(String pzlxDm) {
        this.pzlxDm = pzlxDm;
    }

    /** 
     *            @hibernate.property
     *             column="QY_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getQyBz() {
        return this.qyBz;
    }

    public void setQyBz(String qyBz) {
        this.qyBz = qyBz;
    }

    /** 
     *            @hibernate.property
     *             column="PZCS"
     *             length="50"
     *         
     */
    public String getPzcs() {
        return this.pzcs;
    }

    public void setPzcs(String pzcs) {
        this.pzcs = pzcs;
    }

    /** 
     *            @hibernate.property
     *             column="BZ"
     *             length="200"
     *         
     */
    public String getBz() {
        return this.bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("pzbh", getPzbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglXtpz) ) return false;
        XtglXtpz castOther = (XtglXtpz) other;
        return new EqualsBuilder()
            .append(this.getPzbh(), castOther.getPzbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getPzbh())
            .toHashCode();
    }

}
